#pragma once
#include "BaseUserEvent.h"
#include "iosgViewerEvent.h"
#include "osgShowCoordEvent.h"
#include "osgManualMarkEvent.h"

class CViewerEvent : public IOsgViewerEvent
{
public:
    CViewerEvent(osgViewer::View *view, osg::Group *root, osg::Group *editGroup, osg::Group *textGroup)
	{
        CBaseUserEvent* osgShowCoordEvent = new COsgShowCoordEvent(view, root, textGroup);
		vecViewerEvent.push_back(osgShowCoordEvent);

//        CBaseUserEvent* osgManualMarkEvent = new COsgManualMarkEvent(viewer, root, editGroup);
//		vecViewerEvent.push_back(osgManualMarkEvent);
	}

    virtual void addEventToViewer(osgViewer::View* view);

private:
	std::vector<CBaseUserEvent*> vecViewerEvent;
};
